<div class="form" style="padding-left: 10px;font--family:arial;">
    <h1 style="text-align: center;">Thống kê</h1>
    <div id="backuptabs" style="padding:5px;font-family: arial;">

     <!--   <ul>
            <li><a href="#fragment-1"><span>LÔ ĐỀ</span> </a></li>
            <li><a href="#fragment-2"><span>ĐẶT BOM</span> </a></li>
            <li><a href="#fragment-3"><span>TRẮNG ĐEN</span> </a></li>
            <li><a href="#fragment-4"><span>ĐOÀN TÀU MAY MẮN</span> </a></li>
        </ul>
         --> 
        <div id="fragment-1" style="font-size:13px;">
            <?php if(count($lodeHistory)): ?>
            <table width="98%"  cellpadding="4" cellspacing="4" style="boder:solid;align:center;" >
                <tr style="font-family:arial;background-color:none;">
                    <th  style="padding:7px;font-size:12px;border: thin solid white"  bgcolor="#DADADA;" width="10%">ID</th>
                    <th  style="padding:7px;font-size:12px;border: thin solid white"  bgcolor="#DADADA;" width="20%">Ngày chơi</th>
                    <th  style="padding:7px;font-size:12px;border: thin solid white"  bgcolor="#DADADA;" width="20%">Loại trò chơi</th>
                    <th style="padding:7px;font-size:12px;border: thin solid white"  bgcolor="#DADADA;" width="20%">Các số đã đặt cược</th>
                    <th style="padding:7px;font-size:12px;border: thin solid white"  bgcolor="#DADADA;" width="20%">Tổng tiền cược</th>
                    <th style="padding:7px;font-size:12px;border: thin solid white"  bgcolor="#DADADA;" width="20%">Tiền thắng</th>
                </tr>
                <?php foreach ($lodeHistory as $luotChoi): ?>
                <tr style="font-family:arial;background-color:none;">
                    <td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $luotChoi['serialno']; ?></td>
                    <td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $luotChoi['play_date']; ?></td>
                    <td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $luotChoi['lode_type_name']; ?></td>
                    <td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $luotChoi['choices']; ?></td>
                    <td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $luotChoi['bet']; ?>$</td>
                    <td style="padding:7px;padding-left:10px;align:center;font-size:12px;border: thin solid orange;"><?php echo $luotChoi['win_money']; ?> $</td>
                </tr>
                <?php endforeach; ?>
            </table>
            <?php endif; ?>
        </div>
     <!--    <div id="fragment-2" style="font-size:11px;">
            <?php if(count($bombhistory)): ?>
            <table width="98%"  cellpadding="4" cellspacing="4" >
                <tr>
                    <th border="solid" width="10%">ID</th>
                    <th width="20%">Ngày chơi</th>
                    
                    <th width="20%">Màu bom được đặt</th>
                    <th width="20%">Kết quả</th>
                    <th width="20%">Tiền cược</th>
                    <th width="20%">Tiền thắng/thua</th>
                </tr>
                <?php foreach ($bombhistory as $luotChoi): ?>
                <tr>
                    <td><?php echo $luotChoi['id']; ?></td>
                    <td><?php  
                    	if ($luotChoi['user_set_id']==Yii::app()->user->id) 
                    		echo $luotChoi['date_set'];
                    	else
                    		echo $luotChoi['date_remove'];
                    	?>
                    </td>
                   
                    <td><?php 
                    	if ($luotChoi['color']==1)
                    		echo 'Xanh';
                    	else echo 'Đỏ'; 
                    	?>
                    </td>
                    
                    <td><?php 
	                    	if ($luotChoi['status']==0)
	                    		echo 'Chưa được gỡ';
	                    	elseif ($luotChoi['status']==1)
	                    	{
	                    		if ($luotChoi['user_set_id']==Yii::app()->user->id)
	                    			echo 'Thua';
	                    		else
	                    			echo 'Thắng';
	                    	}
	                    	elseif ($luotChoi['status']==-1)
	                    	{
	                    		if ($luotChoi['user_set_id']==Yii::app()->user->id)
	                    			echo 'Thắng';
	                    		else
	                    			echo 'Thua';
	                    	}
                    	?>
                    </td>                    
                    <td><?php echo $luotChoi['money']; ?>$</td>
                    <td><?php echo $luotChoi['money']; ?> $</td>
                </tr>
                <?php endforeach; ?>
            </table>
            <?php endif; ?>
        </div>
        <div id="fragment-3">
            3
        </div>
        <div id="fragment-4">
            4
        </div>
        -->
    </div>
</div><!-- form -->
